<?php
define('ZSM_ROOT_DIR',realpath(dirname(__FILE__)));
define('ZSM_DEBUG',2047);
define('ZSM_WEB_DIR', strtolower(preg_replace('/[\w]+.php/','',strtolower($_SERVER['SCRIPT_NAME']))));
define('ZSM_LOG_DIR',ZSM_ROOT_DIR.DIRECTORY_SEPARATOR.'log'.DIRECTORY_SEPARATOR);
define('ZSM_CACHE_DIR',ZSM_ROOT_DIR.DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR);
define('ZSM_WWW_HOST','http://'.$_SERVER['HTTP_HOST'].ZSM_WEB_DIR);	
define('ZSM_USER_IMG', ZSM_WWW_HOST.'upload/images/users/');
define('ZSM_UPLOAD_DIR',ZSM_WEB_DIR.'upload/');
define('ZSM_PRE_PAGE',@$_SERVER['HTTP_REFERER']) ;
define('ZSM_THIS_PAGE', 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
define('ZSM_LIB_DIR', 'zsm_lib'.DIRECTORY_SEPARATOR);
define('ZSM_WEB_PATH', ZSM_ROOT_DIR.DIRECTORY_SEPARATOR);
define('ZSM_WEB_NAME', '看网球，网球视频，网球商品，网球游戏，费德勒，德约科维奇，纳达尔，穆雷，罗迪克， 国内第一家网球视频频道');
define('ZSM_WWW_NAME','http://www.kanwangqiu.com/');
error_reporting(ZSM_DEBUG);
require ZSM_ROOT_DIR.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.ZSM_LIB_DIR.'Run.php';
